

export default function(status) {

    const {
        editTable
    } = this.props;

    if(status) {
        let allTableList = editTable.getAllRows('ncc60071701list');
        let selectedRows = [];
        allTableList.map((item, index) => {
            selectedRows.push({ 
                data: item,
                index: index
            });
        });
        this.setState({
            selectedRows: selectedRows
        });
    }
    else {
        this.setState({
            selectedRows: []
        });
    }
}